<h1>管理后台用户列表</h1>

<div class="row">
  <div class="col-sm-12">
    <form action="<%= search_admin_users_path %>" method="get">
      用户名: <input type="text" name="username" value="<%= params[:username] %>" />
      <input type="submit" name="搜索" />
    </form>

    <table class="table">
      <thead>
        <tr>
          <th scope="col">ID</th>
          <th scope="col">用户名</th>
        </tr>
      </thead>
      <tbody>
        <%= render partial: "one_user", collection: @users, as: :user %>  
      </tbody>
    </table>
  </div>
</div>